﻿@model ArchiveViewModel
@{
    var archiveList = Model.ArchiveList;
    var classify = Model.Classify;
 
}
<div class="imagesNews2">
    <div class="top1">
    </div>
    <ul>
        <li class="xyfg"></li>
        @{
            for (int i = 0; i < Model.PageSize; i++)
            {
                if (i < archiveList.Count)
                {
                    var articleItem = archiveList[i];
                    var item = archiveList[i].Album[0];
                  
            <li>
                <div class="i">
                    <a title="@articleItem.Title" href="@Url.Action("Article", "Archive", new { tagName = ChineseCharHelper.ConvertToPinYin(articleItem.ETag, "-") })"`>
                        <img alt="@item.Title" src="@Url.Action("Thumb"
                    , new { w = 150, h = 150, s = string.Format("{0}/{1}/{2}", Model.ImageRoot, articleItem.NewsId, item.ImageName) })" />
                    </a>
                </div>
                <div class="t">
                    @Html.ActionLink(articleItem.Title, "Article", "Archive", new { tagName = ChineseCharHelper.ConvertToPinYin(articleItem.ETag, "-") }, null)</div>
            </li>
                }
                else
                {  
            <li>
                <div class="i">
                    <img alt="" src="" /></div>
                <div class="t">
                </div>
            </li>
                }

            }
        }
    </ul>
    <div class="bottom">
    </div>
</div>
